<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>其他 - 光年(Light Year Admin)后台管理系统模板</title>
<link rel="shortcut icon" href="${ctx}/static/favicon.ico" />
<link href="${ctx}/static/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link href="${ctx}/static/bootstrap/css/materialdesignicons.min.css"
	rel="stylesheet">
<link href="${ctx}/static/bootstrap/css/style.min.css" rel="stylesheet">

<script type="text/javascript" src="${ctx}/static/easyui/jquery.min.js"></script>
<script type="text/javascript"
	src="${ctx}/static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${ctx}/static/easyui/js/validateExtends.js"></script>
<script type="text/javascript"
	src="${ctx}/static/bootstrap/js/jquery.min.js"></script>
<script type="text/javascript"
	src="${ctx}/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="${ctx}/static/bootstrap/js/main.min.js"></script>
<script type="text/javascript">
	$(function() {
		//修改系统信息
		$("#systemTable button").each(function() {
			$(this).click(function() {
				var input = $(this).parents("tr").find("input");
				var inputName = $(input).attr("name");
				var name = "";
				var value = "";
				var name = $(input).attr("textboxname");
				var value = $(input).val();
				var data = new Array;
				data[0] = name;
				data[1] = value;
				console.log(data);
				$.ajax({
					type : "post",
					url : "${ctx}/system/edit/" + data,
				});
				var $btn = $(this).button('loading');
			    setTimeout(function() { $btn.button("reset")}, 3e3);
			});
		});
	})
	
</script>
</head>

<body>
	<div class="container-fluid p-t-15">
		<div class="row">
			<div class="col-md-12">
				<div class="card">
					<div class="card-body">
						<div class="panel-group" id="accordion" role="tablist"
							aria-multiselectable="true">
							<table id="systemTable">
								<tr>
									<td>
										<div class="panel-heading" role="tab" id="headingOne">
											<h4 class="panel-title">
												<a role="button" data-toggle="collapse"
													data-parent="#accordion" href="#collapseOne"
													aria-expanded="true" aria-controls="collapseOne"> 学校名称:
												</a>
											</h4>
										</div>
									</td>
									<td >
										<div id="collapseOne" class="panel-collapse collapse in"
											role="tabpanel" aria-labelledby="headingOne">
											<div class="panel-body" id="myinput">
												<div class="col-md-12 card card-body">
													<input id="school_name" value="${systemList.schoolName}"
														class="easyui-textbox" style="width: 300px; height: 30px;"
														type="text" name="school_name" />
													<button type="button" id="myButton"
														data-loading-text="处理中..." class="btn btn-primary"
														autocomplete="off">保存</button>
													<em style="width: 300px; height: 60px; line-height: 60px;color: #e6cde3; font-weight: bold; font-size: 16px;margin: 0 auto;">
														${message}
													</em>
												</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<div class="panel-heading" role="tab" id="headingTwo">
											<h4 class="panel-title">
												<a class="collapsed" role="button" data-toggle="collapse"
													data-parent="#accordion" href="#collapseTwo"
													aria-expanded="true" aria-controls="collapseTwo">
													教师通知: </a>
											</h4>
										</div>
									</td>
									<td>
										<div id="collapseTwo" class="panel-collapse collapse"
											role="tabpanel" aria-labelledby="headingTwo">
											<div class="panel-body">
												<div class="col-md-12 card card-body">
													<input id="notice_teacher"
														value="${systemList.noticeTeacher}"
														style="width: 300px; height: 70px;"
														data-options="multiline: true" class="easyui-textbox"
														type="text" name="notice_teacher" />
													<button type="button" id="myButton"
														data-loading-text="处理中..." class="btn btn-primary"
														autocomplete="off">保存</button>
													<em style="width: 300px; height: 60px; line-height: 60px;color: #e6cde3; font-weight: bold; font-size: 16px;margin: 0 auto;">
														${message}
													</em>
												</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td >
										<div class="panel-heading" role="tab" id="headingThree">
											<h4 class="panel-title">
												<a class="collapsed" role="button" data-toggle="collapse"
													data-parent="#accordion" href="#collapseThree"
													aria-expanded="true" aria-controls="collapseThree">
													学生通知: </a>
											</h4>
										</div>
									</td>
									<td>
										<div id="collapseThree" class="panel-collapse collapse"
											role="tabpanel" aria-labelledby="headingThree">
											<div class="panel-body">
												<div class="col-md-12 card card-body">
													<input id="notice_student"
														value="${systemList.noticeStudent}"
														style="width: 300px; height: 70px;"
														data-options="multiline: true" class="easyui-textbox"
														type="text" name="notice_student" />
													<button type="button" id="myButton"
														data-loading-text="处理中..." class="btn btn-primary"
														autocomplete="off">保存</button>
													<em style="width: 300px; height: 60px; line-height: 60px;color: #e6cde3; font-weight: bold; font-size: 16px;margin: 0 auto;">
														${message}
													</em>
												</div>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td >
										<div class="panel-heading" role="tab" id="headingFour">
											<h4 class="panel-title">
												<a class="collapsed" role="button" data-toggle="collapse"
													data-parent="#accordion" href="#collapseFour"
													aria-expanded="true" aria-controls="collapseFour">
													学年学期: </a>
											</h4>
										</div>
									</td>
									<td>
										<div id="collapseFour" class="panel-collapse collapse"
											role="tabpanel" aria-labelledby="headingFour">
											<div class="panel-body">
												<div class="col-md-12 card card-body">
													<input id="semester"
														value="${systemList.semester}"
														style="width: 300px; height: 70px;"
														data-options="multiline: true" class="easyui-textbox"
														type="text" name="semester" />
													<button type="button" id="myButton"
														data-loading-text="处理中..." class="btn btn-primary"
														autocomplete="off">保存</button>
													<em style="width: 300px; height: 60px; line-height: 60px;color: #e6cde3; font-weight: bold; font-size: 16px;margin: 0 auto;">
														${message}
													</em>
												</div>
											</div>
										</div>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

</body>
</html>